﻿using _01_Tower4._0.GameFrame;
using _01_Tower4._0.Interface;
using _01_Tower4._0.Tool;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _01_Tower4._0.CharacterBase
{
    internal class Npc : GameObject, IDialog
    {
        public int DialogId { get; set; }


        string display;
        public int index;
        ConsoleColor color;

        public Npc(Pos pos,string display, int index, int dialogId = -1,ConsoleColor color = ConsoleColor.Black)
        {
            Pos = pos;
            DialogId = dialogId;
            this.display = display;
            this.index = index;
            this.color = color;
        }

        public void Render()
        {
            Utility.MyPrint(display, Pos.x, Pos.y,color);
        }
    }
}
